<%@ page language="java" import="java.util.*,com.xbw.bookSale.vo.*"
	pageEncoding="GB18030"%>
<%
	request.setCharacterEncoding("GBK");
	String strId = request.getParameter("id");
	String strNum = request.getParameter("num");
	int id = 0, num = 0;
	if (strId != null && strNum != null && !strId.trim().equals("")
			&& !strNum.trim().equals("")) {
		try {
			id = Integer.parseInt(strId);
			num = Integer.parseInt(strNum);
		} catch (NumberFormatException e) {
			e.printStackTrace();
			return;
		}

		Map<Integer, CartItem> cart = (Map<Integer, CartItem>) session
				.getAttribute("CART");
		if (cart != null) {
			CartItem item = cart.get(id);
			if (item != null) {
				item.setNum(num);
			}
		}
	}
	response.sendRedirect("LookAtCart.jsp");
%>